package com.ruoyi.api.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.ITCarouselService;
import com.ruoyi.user.dto.*;
import com.ruoyi.user.service.IUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@Api(tags = "APP公用接口")
@RestController
@RequestMapping("/api/common")
public class ApiAppCommonController extends ApiBaseController{

    @Autowired
    private ITCarouselService iTCarouselService;

    /**
     * 获取可用的轮播图接口
     * @param
     */
    @GetMapping("/carousel")
    @ApiOperation("轮播图接口")
    public AjaxResult carousel () {
        return AjaxResult.success(iTCarouselService.selectEnableTCarouselList());
    }


}
